module.exports = {
    // 开发环境
    mode: "development",
    // 转化成高级的js语法
    module: {
        rules: [{
            test: /\.js$/,
            exclude: /node_modules/,
            use: {
                loader: "babel-loader",
                options: {
                    presets: [
                        [
                            '@babel/preset-env',
                            {
                                useBuiltIns: "usage"
                            }
                        ], '@babel/preset-react']
                }
            }
        }]
    }
}